# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=wayshot
pkgver=1.3.0
pkgrel=0
pkgdesc="A native screenshot tool for wlroots based compositors"
url="https://github.com/waycrate/wayshot"
# s390x: no desktop on this arch
arch="all !s390x"
license="BSD-2-Clause"
makedepends="cargo cargo-auditable"
source="https://github.com/waycrate/wayshot/archive/$pkgver/wayshot-$pkgver.tar.gz"
options="!check"  # no tests provided


prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

package() {
	install -D -m755 target/release/wayshot -t "$pkgdir"/usr/bin/
}

sha512sums="
e953deefaa84eeb31df56205cf99bd0224be635058f0633f76523e4e7fe04ac9db43514fd1fbedb910a188aa0b1804079615d760d4d6c6342c080b229f8cb92c  wayshot-1.3.0.tar.gz
"
